-- GENERATED SPELL FOR [Bloodtalon Taillasher] --


function spell0_3122(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16827,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 579, 1)
end

function spell1_3122(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 639, 1)
end

function spell2_3122(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 0, 1)
end

function spell3_3122(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 0, 1)
end

function spell4_3122(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 0, 1)
end

function spell5_3122(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_3122', 3000, 1)
end

function spell6_3122(pUnit, Event) --@Savage Rend,n/a--
pUnit:FullCastSpellOnTarget(50498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3122', 15000, 1)
end

function Sorts_3122(pUnit, Event)
local choix_sorts_3122 = math.random(0, 6)
if choix_sorts_3122 == 0 then
pUnit:RegisterEvent('spell0_3122', 1, 1)
end
if choix_sorts_3122 == 1 then
pUnit:RegisterEvent('spell1_3122', 1, 1)
end
if choix_sorts_3122 == 2 then
pUnit:RegisterEvent('spell2_3122', 1, 1)
end
if choix_sorts_3122 == 3 then
pUnit:RegisterEvent('spell3_3122', 1, 1)
end
if choix_sorts_3122 == 4 then
pUnit:RegisterEvent('spell4_3122', 1, 1)
end
if choix_sorts_3122 == 5 then
pUnit:RegisterEvent('spell5_3122', 1, 1)
end
if choix_sorts_3122 == 6 then
pUnit:RegisterEvent('spell6_3122', 1, 1)
end
end

function mob3122_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3122', math.random(1500, 3000), 1)
end

function mob3122_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3122_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3122_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3122, 1, 'mob3122_Action')
RegisterUnitEvent(3122, 2, 'mob3122_Leave')
RegisterUnitEvent(3122, 3, 'mob3122_Kill')
RegisterUnitEvent(3122, 4, 'mob3122_Die')
